﻿<!DOCTYPE HTML>
<html>
<head>
<#include "/script.ftl">
<title>订单列表</title>
<link rel="stylesheet" type="text/css" href="../static/eth/css/customer.css" />
<script type="text/javascript" src="../static/eth/js/client.js"></script>
</head>
<body id="body" class="search_body">
	<div  class="customer_content">
		<form id="form" action='save' method="post" autocomplete="off">
			<input type="text" style="display:none" name="clientId" id="clientId" value="${client.clientId!''}"/>	
	  		<div class="customer_box1  text-c">
	  			<div class="customer_line">
	  				<div class="customer_item2">
	  					<label>商户名</label>
	  					<input name="clientName" value="${client.clientName!""}" type="text" class="input-text radius" required>
	  					<label style="width:160px" id="clientName-error" class="error" for="clientName"></label>
	  				</div>
	  				<div class="customer_item2">
	  					<label>商户类型</label>
	  					<select name="clientType" class="input-text radius" required>
	  						<option value="">请选择商户类型</option>
	  						<option value="TMC" <#if client.clientType! ='TMC'>selected="selected"</#if>>TMC</option>
	  						<option value="OTA" <#if client.clientType! ='OTA'>selected="selected"</#if>>OTA</option>
	  						<option value="B客户" <#if client.clientType! ='B客户'>selected="selected"</#if>>B客户</option>
	  						<option value="C客户" <#if client.clientType! ='C客户'>selected="selected"</#if>>C客户</option>	
	  					</select>
	  					<label style="width:160px" id="clientType-error" class="error" for="clientType"></label>
	  				</div>
	  				<div class="customer_item2">
	  					<label>联系人</label>
	  					<input type="text" name="contactName" value="${client.contactName!""}" class="input-text radius" required>
	  					<label style="width:160px" id="contactName-error" class="error" for="contactName"></label>
	  				</div>
	  			</div>
	  			<div class="customer_line">
	  				<div class="customer_item2">
	  					<label>手机号</label>
	  					<input type="text" name="telephone" " value="${client.telephone!''}" class="input-text radius" required isMobile="true">
	  					<label style="width:160px" id="telephone-error" class="error" for="telephone"></label>
	  				</div>
	  				<div class="customer_item2">
	  					<label>地址</label>
	  					<input type="text" name="address" value="${client.address!''}" class="input-text radius" required>
	  					<label style="width:160px" id="address-error" class="error" for="address"></label>
	  				</div>
	  				<div class="customer_item2">
	  					<label>邮编</label>
	  					<input type="text" name="postCode" value="${client.postCode!''}" class="input-text radius"required>
	  					<label style="width:160px" id="postCode-error" class="error" for="postCode"></label>
	  				</div>
	  			</div>
	  			<div class="customer_line">
	  				<div class="customer_item2">
	  					<label>授信额度</label>
	  					<input  type="text" name="creditLine" value="${client.creditLine!''}" class="input-text radius">
	  					<label style="width:160px" id="creditLine-error" class="error" for="creditLine"></label>
	  				</div>
	  				<div class="customer_item2">
	  					<label>授信币种</label>
	  					<select name="creditCurrency" class="input-text radius" >
	  						<option value="">请选择币种</option>
	  						<option value="CNY"  <#if client.creditCurrency! ='CNY'>selected="selected"</#if>>CNY 人民币</option>
	  						<option value="HKD"  <#if client.creditCurrency! ='HKD'>selected="selected"</#if>>HKD 港币</option>
	  						<option value="USD"  <#if client.creditCurrency! ='USD'>selected="selected"</#if>>USD 美元</option>
	  					</select>
	  					<label style="width:160px" id="creditCurrency-error" class="error" for="creditCurrency"></label>
	  				</div>
	  				<div class="customer_item2">
	  					<label>还款天数</label>
	  					<input type="text" name="repayDays" value="${client.repayDays!''}" class="input-text radius" digits="true">
	  					<label style="width:160px" id="repayDays-error" class="error" for="repayDays"></label>
	  				</div>
	  			</div>
	  			<div class="customer_line">
	  				<div class="customer_item2">
	  					<label>出票服务费</label>
	  					<input type="text" name="ticketServiceFee" value="${client.ticketServiceFee!''}" class="input-text radius" required digits="true">
	  					<label style="width:160px" id="ticketServiceFee-error" class="error" for="ticketServiceFee"></label>		
	  				</div>
	  				<div class="customer_item2">
	  					<label>废票服务费</label>
	  					<input type="text" name="invalidServiceFee" value="${client.invalidServiceFee!''}" class="input-text radius" required digits="true">
	  					<label style="width:160px" id="invalidServiceFee-error" class="error" for="invalidServiceFee"></label>
	  				</div>
	  				<div class="customer_item2">
	  					<label>退票服务费</label>
	  					<input type="text" name="refundServiceFee" value="${client.refundServiceFee!''}" class="input-text radius" required digits="true">
	  					<label style="width:160px" id="refundServiceFee-error" class="error" for="refundServiceFee"></label>
	  				</div>
	  			</div>
	  			<div class="customer_line">
	  				<div class="customer_item2">
	  					<label>改期服务费</label>
	  					<input type="text" name="changeServiceFee" value="${client.changeServiceFee!''}" class="input-text radius" required digits="true">
	  					<label style="width:160px" id="changeServiceFee-error" class="error" for="changeServiceFee"></label>
	  				</div>
	  				<div class="customer_item2">
	  					<label>结算方式</label>
	  					<select name="settleMethod" class="input-text radius" required >
	  						<option value="" <#if client.clientType! =''>selected="selected"</#if>>请选择结算方式</option>
	  						<option value="日结" <#if client.settleMethod! ='日结'>selected="selected"</#if>>日结</option>
	  						<option value="周结" <#if client.settleMethod! ='周结'>selected="selected"</#if>>周结</option>
	  						<option value="月结" <#if client.settleMethod! ='月结'>selected="selected"</#if>>月结</option>
	  					</select>
	  					<label style="width:160px" id="settleMethod-error" class="error" for="settleMethod"></label>
	  				</div>
	  				<div class="customer_item2">
	  					<label>还款时间</label>
	  					<input type="text" name="repayDate" value="${client.repayDate!''}" class="input-text radius Wdate" onfocus="WdatePicker({minDate:'%y-%M-%d'})" class="input-text Wdate" autocomplete="off" id="outboundTravelDateStartStr" placeholder="yyyy-MM-dd" required>
	  					<select name="repayTime" class="input-text" style="width:50px">
	  						<#assign hours=0..23 />
	  						<#list hours! as hour>
	  							<#if (hour < 10)>
	  								<option value="0${hour}" <#if client.repayTime! ='0${hour}'>selected="selected"</#if>>0${hour}</option>
	  							<#else>
	  								<option value="${hour}" <#if client.repayTime! ='${hour}'>selected="selected"</#if>>${hour}</option>
	  							</#if>
	  						</#list>
	  					</select>
	  					<label style="width:160px" id="outboundTravelDateStartStr-error" class="error" for="outboundTravelDateStartStr"></label>
	  				</div>
	  			</div>
	  			<div class="customer_line">
		  			<div class="customer_item3">
		  				<label style="vertical-align: top">备注</label>
		  				<textarea class="radius textarea" name="memo" >${client.memo!''}</textarea>
		  			</div>
	  			</div>
	  			<div class="customer_line">
		  			<div class="customer_item3 mt-15">
		  				<input type="submit" value="保存" class="btn btn-primary radius">
		  			</div>
	  			</div>
	  		</div>
	  	</form>
	</div>
</body>
</html>